<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<style>

</style>
</head>
<body>
<form action="">

<input type="text" id="verCode" name="verCode" />
<img alt="" src="/captcha/captcha">
<input type="button" value="login" onclick="login()">
</form>

</body>
</html>
<script>
$(function(){
	
});

function login(){
	var username = "",password="";
	var verCode = $("#verCode").val();
	$.post("/captcha/login", {username:username,password:password,verCode:verCode}, function(data){
		console.log(data);
	}, "json");
}
</script>